package com.nariano.server.publisher.events;

import com.nariano.server.domain.entities.Area;
import com.nariano.server.domain.entities.PopulationType;
import com.nariano.server.domain.entities.User;
import com.nariano.server.publisher.Event;
import com.nariano.server.publisher.Visitor;

public class PopulationChanged extends Event {

	private PopulationType type;
	private int count;
	private Integer user;

	public PopulationChanged(Area a, Integer user, PopulationType type, int count) {
		super(a);
		this.type = type;
		this.count = count;
		this.user = user;
	}

	@Override
	public void visit(Visitor visitor) {
		visitor.accept(this);
	}

	public PopulationType getType() {
		return type;
	}

	public int getCount() {
		return count;
	}

	public Integer getUserId() {
		return user;
	}
	
	

}
